package com.leap.entity.dto;

import com.leap.entity.Article;
import com.leap.entity.Media;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.util.List;


@Data
@Builder
@Schema(description = "文章详细页面类")
public class ArticleDTO {

    @Schema(description = "科普文章类")
    private Article article;

    @Schema(description = "文章的媒体资源集合")
    private List<Media> mediaList;

    @Schema(description = "是否为当前用户收藏文章 1是 0否")
    private int isLiked;

}
